import request from '@/utils/request'
export default {
  //拆单业务
  spilt(splitGoodsIds) {
    return request({
      url: `need/purchaseorder/spit`,
      method: 'post',
      data: splitGoodsIds
    })
  },
  //获取采购单详情信息
  getPurchaseOrderGoodsEditData(purchaseOrderId) {
    return request({
      url: `need/purchaseorder/getPurchaseOrderGoodsEditData/${purchaseOrderId}`,
      method: 'get'
    })
  },
  //获取采购单详情信息
  findPage(queryPageBean) {
    return request({
      url: `need/purchaseordergoods/findPage`,
      method: 'post',
      data: queryPageBean
    })
  },
  //审核
  xMan(purchaseOrderId){
    return request({
      url: `need/purchaseorder/xMan/${purchaseOrderId}`,
      method: 'get'
    })
  },
  //反审
  unxMan(purchaseOrderId){
    return request({
      url: `need/purchaseorder/unxMan/${purchaseOrderId}`,
      method: 'get'
    })
  }
}
